package lois;


public class Exponentielle extends Loi {

	private double lambda;
	
	public Exponentielle(double lambda) {
		super();
		this.lambda = lambda;
	}

	@Override
	public int next() {
		return (int)  (-Math.log(1 - Math.random()) / lambda);
	}



	
}
